package com.org.model;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Cart entity. @author MyEclipse Persistence Tools
 */

public class Cart implements java.io.Serializable {

	// Fields

	private Long id;
	private Member member;
	private Timestamp createDate;
	private Timestamp modifyDate;
	private String cartKey;
	private Set cartItems = new HashSet(0);

	// Constructors

	/** default constructor */
	public Cart() {
	}

	/** minimal constructor */
	public Cart(Timestamp createDate, Timestamp modifyDate, String cartKey) {
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.cartKey = cartKey;
	}

	/** full constructor */
	public Cart(Member member, Timestamp createDate, Timestamp modifyDate,
			String cartKey, Set cartItems) {
		this.member = member;
		this.createDate = createDate;
		this.modifyDate = modifyDate;
		this.cartKey = cartKey;
		this.cartItems = cartItems;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Member getMember() {
		return this.member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}

	public Timestamp getModifyDate() {
		return this.modifyDate;
	}

	public void setModifyDate(Timestamp modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getCartKey() {
		return this.cartKey;
	}

	public void setCartKey(String cartKey) {
		this.cartKey = cartKey;
	}

	public Set getCartItems() {
		return this.cartItems;
	}

	public void setCartItems(Set cartItems) {
		this.cartItems = cartItems;
	}

}